package com.wxapp.system.service.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wxapp.common.constant.pojo.vm.ResultVm;
import com.wxapp.common.constant.pojo.vo.UserVo;
import com.wxapp.system.api.pojo.vm.city.PCityDetailVm;
import com.wxapp.system.api.pojo.vm.city.PCityPageVm;
import com.wxapp.system.api.pojo.vm.city.PCityRelationTreeVm;
import com.wxapp.system.api.pojo.vm.city.PCityRelationVm;
import com.wxapp.system.api.pojo.vo.city.QCitySaveVo;
import com.wxapp.system.api.pojo.vo.city.QCitySearchVo;
import com.wxapp.system.api.pojo.vo.city.QCityUpdateVo;

import java.util.List;

/**
 * @author lgl
 * @Description 省市县管理
 * @Datetime 2022/11/10 13:25
 * @Modified By
 */
public interface CityService {
    ResultVm<String> save(UserVo userVo, QCitySaveVo qSaveVo);

    ResultVm<String> update(UserVo userVo, QCityUpdateVo qSaveVo);

    ResultVm<PCityDetailVm> detail(String id);

    ResultVm<String> delete(String id);

    ResultVm<Page<PCityPageVm>> getPage(QCitySearchVo qCitySearchVo);

    ResultVm<List<PCityRelationVm>> relation(String pid);

    ResultVm<List<PCityRelationTreeVm>> relationTree(QCitySearchVo qCitySearchVo);
}
